package com.haha.community.service;

import com.haha.community.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yang
 * @since 2020-10-30
 */
public interface UserService extends IService<User> {

    public Map<String, Object> register(User user);

    int activation(int userId, String code);

    Map<String, Object> login(String username, String password, int expiredSeconds);

    void logout(String ticket);

    User findUserByName(String userName);
}
